package com.xbongbong.pro.statistic.result.pojo.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 表格需要的data数据内容
 * @author zcp
 * @version v1.0
 * @date 2019/2/18 21:06
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ResultDataTableVO implements Serializable {
    private static final long serialVersionUID = -3401688804577463290L;

    /**
     * 值
     */
    private String value;
    /**
     * 穿透的条件，该值不传或为空字符串时，则代表不能穿透
     */
    private String through;
    /**
     * 当前行的主键id
     */
    private Long dataId;

    public ResultDataTableVO() {
    }

    public ResultDataTableVO(String value, String through) {
        this.value = value;
        this.through = through;
    }
    public ResultDataTableVO(String value, String through, Long dataId) {
        this.value = value;
        this.through = through;
        this.dataId = dataId;
    }
}
